<?php

namespace App;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

/**
 * App\DiscountSalesRule
 *
 * @property int $id
 * @property string|null $name 折扣名称
 * @property string|null $start_time 开始时间
 * @property string|null $end_time 结束时间
 * @property int $satisfy_number 享受优惠的起步数量
 * @property float $satisfy_amount 享受优惠的起步金额
 * @property int $free_get_number 免费赠送的数量
 * @property int $goods_id 赠品的商品id
 * @property float $reduce_amount 优惠的金额
 * @property float $reduce_rate 优惠的折扣
 * @property string|null $type 折扣类型:buy_get_free,reduce
 * @property int $status 状态:0未启用，1启用
 * @property string|null $deleted_at
 * @property \Carbon\Carbon|null $created_at
 * @property \Carbon\Carbon|null $updated_at
 * @method static bool|null forceDelete()
 * @method static \Illuminate\Database\Query\Builder|\App\DiscountSalesRule onlyTrashed()
 * @method static bool|null restore()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\DiscountSalesRule whereCreatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\DiscountSalesRule whereDeletedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\DiscountSalesRule whereEndTime($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\DiscountSalesRule whereFreeGetNumber($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\DiscountSalesRule whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\DiscountSalesRule whereName($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\DiscountSalesRule whereReduceAmount($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\DiscountSalesRule whereReduceRate($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\DiscountSalesRule whereSatisfyAmount($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\DiscountSalesRule whereSatisfyNumber($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\DiscountSalesRule whereStartTime($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\DiscountSalesRule whereStatus($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\DiscountSalesRule whereType($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\DiscountSalesRule whereUpdatedAt($value)
 * @method static \Illuminate\Database\Query\Builder|\App\DiscountSalesRule withTrashed()
 * @method static \Illuminate\Database\Query\Builder|\App\DiscountSalesRule withoutTrashed()
 * @mixin \Eloquent
 * @method static \Illuminate\Database\Eloquent\Builder|\App\DiscountSalesRule whereGoodsId($value)
 * @property string $range 规则适用范围：vip会员，all全部用户
 * @method static \Illuminate\Database\Eloquent\Builder|\App\DiscountSalesRule whereRange($value)
 */
class DiscountSalesRule extends Model
{
    protected  $table = 'discount_sales_rule';
    use SoftDeletes;
}
